// https://github.com/chriskempson/tomorrow-theme
highlight-background = #272822
highlight-current-line = #3E3D32
highlight-selection = #49483E
highlight-foreground = #F8F8F2
highlight-comment = #75715E
highlight-red = #F92672
highlight-orange = #FD971F
highlight-yellow = #E6DB74
highlight-green = #A6E22E
highlight-aqua = #A1EFE4
highlight-blue = #66D9EF
highlight-purple = #AE81FF

$code-block
  background: highlight-background
  margin: 0 article-padding * -1
  padding: 15px article-padding
  border-style: solid
  border-color: color-border
  border-width: 1px 0
  overflow: auto
  color: highlight-foreground
  line-height: font-size * line-height

$line-numbers
  color: #666
  font-size: 0.85em

.article-entry
  pre, code
    font-family: font-mono
  code
    background: #f0f0f0
    text-shadow: 0 1px #fff
    font-size:  0.85em
    padding: 0 0.3em
    border: 1px solid #dcdcdc
    border-radius: 3px
  pre
    @extend $code-block
    code
      background: none
      text-shadow: none
      padding: 0
      border: none
  .highlight
    @extend $code-block
    pre
      border: none
      margin: 0
      padding: 0
    table
      margin: 0
      width: auto
    td
      border: none
      padding: 0
    figcaption
      clearfix()
      font-size: 0.85em
      color: highlight-comment
      line-height: 1em
      margin-bottom: 1em
      a
        float: right
    .gutter pre
      @extend $line-numbers
      text-align: right
      padding-right: 20px
    .line
      height: font-size * line-height
  .gist
    margin: 0 article-padding * -1
    border-style: solid
    border-color: color-border
    border-width: 1px 0
    background: highlight-background
    padding: 15px article-padding 15px 0
    .gist-file
      border: none
      font-family: font-mono
      margin: 0
      .gist-data
        background: none
        border: none
        .line-numbers
          @extend $line-numbers
          background: none
          border: none
          padding: 0 20px 0 0
        .line-data
          padding: 0 !important
      .highlight
        margin: 0
        padding: 0
        border: none
      .gist-meta
        background: highlight-background
        color: highlight-comment
        font: 0.85em font-sans
        text-shadow: 0 0
        padding: 0
        margin-top: 1em
        margin-left: article-padding
        a
          color: color-link
          font-weight: normal
          &:hover
            text-decoration: underline

pre
  .comment
  .preprocessor
    color: highlight-comment
  .tag
    color: highlight-foreground
  .title
  .variable
  .regexp
  .ruby .constant
  .xml .tag .title
  .xml .pi
  .xml .doctype
  .html .doctype
  .css .id
  .css .class
  .css .pseudo
    color: highlight-red
  .number
  .built_in
  .literal
  .constant
    color: highlight-purple
  .params
    color: highlight-orange
  .class
  .ruby .class .title
  .css .rules .attribute
  .attribute
    color: highlight-green
  .string
  .value
  .inheritance
  .header
  .ruby .symbol
  .xml .cdata
    color: highlight-yellow
  .css .hexcolor
    color: highlight-aqua
  .function
  .python .decorator
  .python .title
  .ruby .function .title
  .ruby .title .keyword
  .perl .sub
  .javascript .title
  .coffeescript .title
    color: highlight-blue
  .keyword
  .javascript .function
    color: highlight-blue